package org.springframework.boot.dcj.controller;

import jakarta.annotation.Resource;
import org.springframework.boot.dcj.config.OrderConfig;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/order")
public class TestController {
    @Resource
    private OrderConfig orderConfig;

    @GetMapping("/info")
    public String getOrder() {
        System.out.println(orderConfig.toString());
        return orderConfig.toString();
    }
}
